package com.mdc.mansion.core.modules.system.impl;

import com.mdc.mansion.core.modules.system.SysUserService;
import com.mdc.mansion.dataaccess.common.service.CrudService;
import com.mdc.mansion.dataaccess.modules.system.dao.UserDao;
import com.mdc.mansion.dataaccess.modules.system.entity.User;
import org.springframework.stereotype.Service;

/**
 * 管理员ServiceImpl
 * @author chenmingdong
 * @version 2016-03-03
 */
@Service
public class SysUserServiceImpl extends CrudService<UserDao, User> implements SysUserService {

	@Override
	public User getUserByLoginName(String loginName) {
		User user=new User();
		user.setLoginName(loginName);
		return this.dao.getByLoginName(user);
	}
}
 